import { httpDelete, httpGet, httpPost, httpPut } from "../utils/http"
//查询医生
export const getDoctorsApi = (data) =>{
    return httpPost('/doctors/search',data)
}
//添加医生
export const addDoctorApi = (data) => {
    return httpPost('/doctors/add', data)
}
//修改医生信息
export const updataDoctorApi = (data) => {
    return httpPut('/doctors/update', data)
}
//删除医生
export const deleteDoctorApi = (data) => {
    return httpDelete('/doctors/remove', data)
}
//获取医生详细信息
export const getDoctorInfoApi = (data) =>{
    return httpGet('/doctors/detail',data)
}
//获取当前登录医生信息
export const getDoctorInfoByTokenApi = () =>{
    return httpGet('/doctors/detailByToken')
}
//获取医生角色
export const getDoctorRolesApi = (data) =>{
    return httpPost('/roles/search',data)
}